package com.benbi.shequapi.utils;

public class ResultData extends Result {
    private Object data;

    public ResultData(int errorCode, String msg){
        super(errorCode, msg);
        assert errorCode != SUCCESS_CODE;
    }

    public ResultData(Object data) {
        super();
        this.data = data;
    }

    public ResultData(String msg, Object data) {
        super(msg);
        this.data = data;
    }

    public ResultData(int errorCode, String msg, Object data){
        super(errorCode, msg);
        this.data = data;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
